<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel=stylesheet type="text/css" href="css/main.css">
<link rel=stylesheet type="text/css" href="css/introduction.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>教會相簿</title>
</head>
<body background="img/background_color.gif">
<%@ taglib prefix="s" uri="/struts-tags" %>  
<%@ include file="Top.jsp"%>
<%@ include file="menu.jsp"%>
<table cellpadding="0" cellspacing="0" width="100%" background="img/background_color.gif" >
  <tr>
    <td>
    <table cellpadding="0" cellspacing="0" width="1000" background="img/context_background.gif" align="center">
      <tr valign="top">
        <td align="left" height="25">
        </td>
      </tr>
      <tr>
        <td align="center">
        <table cellpadding="0" cellspacing="0" width="900">
          <tr valign="top">
            <td align="left">
            <img src="img/albums_title.jpg" border="0" />
            </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td align="center">
        <table cellpadding="0" cellspacing="0" width="900" class="albumscontenttable">
          <tr>
          <s:set var="i" value="0"/> 
          <s:iterator value="albums_folders"> 
          <s:if test="#i%4>0">  
            <td align="center">
              <table width="200" class="albumstable">
                <tr>
                  <td align="center">
                  <s:url id="pic_url" action="Albums_Pic">
                    <s:param name="pic_folder"><s:property value="folder_name"/></s:param>
                  </s:url>
                  <s:a href="%{pic_url}"><img src="<s:property value="cover_Path"/>" width="150" height="100" border="1" /></s:a>
                  </td>
                </tr>
                <tr>
                  <td align="center">
                  <s:property value="folder_name"/>
                  </td>
                </tr>
                <tr>
                  <td height="10" align="center">
                  </td>
                </tr>
              </table>
            </td>
          </s:if>  
          <s:else>  
          </tr>
          <tr>
            <td>
              <table width="200" class="albumstable">
                <tr>
                  <td align="center">
                  <s:url id="pic_url" action="Albums_Pic">
                    <s:param name="pic_folder"><s:property value="folder_name"/></s:param>
                  </s:url>
                  <s:a href="%{pic_url}"><img src="<s:property value="cover_Path"/>" width="150" height="100" border="0" /></s:a>
                  </td>
                </tr>
                <tr>
                  <td align="center">
                  <s:property value="folder_name"/>
                  </td>
                </tr>
                 <tr>
                  <td height="10" align="center">
                  </td>
                </tr>
              </table>
            </td>
          </s:else> 
          <s:set var="i" value="#i+1"/>
          </s:iterator>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td height="25" align="left">
        <s:property value="message"/>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<%@ include file="Footer.jsp"%>
</body>
</html>
